//
//  AppointmentVipInfoCell.m
//  WeiYiMei
//
//  Created by 李叶夫 on 2019/4/24.
//  Copyright © 2019年 liyefu. All rights reserved.
//

#import "AppointmentVipInfoCell.h"
#import "AppointmentVipInfoView.h"

@interface AppointmentVipInfoCell ()

@property (nonatomic, strong) AppointmentVipInfoView *view;

@end

@implementation AppointmentVipInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupSubViews];
    }
    return self;
}

- (void)setVipCodeString:(NSString *)vipCodeString
{
    _vipCodeString = vipCodeString;
    self.view.vipCode.text = String(vipCodeString);
}

- (void)setVipTelString:(NSString *)vipTelString
{
    _vipTelString = vipTelString;
    self.view.vipTel.text = String(vipTelString);
}

- (void)setupSubViews
{
    self.view = [[AppointmentVipInfoView alloc] init];
    [self addSubview:self.view];
    
    [self.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self);
    }];
}

@end
